<template>
    <div class="login-page">
       <div class="login">
           <el-input placeholder="用户名" v-model="username" />
           <el-input placeholder="密码" v-model="password" type="password" />
           <el-button type="primary" @click="handleLogin">登录</el-button>
       </div>
    </div>
</template>

<script setup>
import { ref } from 'vue';

const username = ref('');
const password = ref('');

function handleLogin() {
    // 登录逻辑
    console.log('用户名:', username.value, '密码:', password.value);
}
</script>

<style></style>
